export const data = {
  "nodes": [
    {
      "id": "node-44",
      "data": {
        "id": 44,
        "value_type": "radio",
        "question_desc_cn": "\u94fe\u8def\u5206\u67901",
        "option_order": "[5,6,7,8,9,10,11]",
        "radio": { "options": [5, 6, 7, 8, 9, 10, 11] },
        "cn_short": "\u94fe\u8def\u5206\u67901",
        "tips": "",
        "meta": "{}"
      }
    },
    {
      "id": "node-44;option-5",
      "data": { "id": 5, "cn_name": "\u662f", "en_name": "", "meta": {} }
    },
    {
      "id": "node-44;option-6",
      "data": { "id": 6, "cn_name": "\u5426", "en_name": "", "meta": {} }
    },
    {
      "id": "node-44;option-7",
      "data": { "id": 7, "cn_name": "\u76f4\u884c", "en_name": "", "meta": {} }
    },
    {
      "id": "node-44;option-8",
      "data": { "id": 8, "cn_name": "\u5de6\u8f6c", "en_name": "", "meta": {} }
    },
    {
      "id": "node-44;option-9",
      "data": { "id": 9, "cn_name": "\u53f3\u8f6c", "en_name": "", "meta": {} }
    },
    {
      "id": "node-44;option-10",
      "data": { "id": 10, "cn_name": "\u6389\u5934", "en_name": "", "meta": {} }
    },
    {
      "id": "node-44;option-11",
      "data": { "id": 11, "cn_name": "\u7b49\u706f", "en_name": "", "meta": {} }
    },
    {
      "id": "node-45",
      "data": {
        "id": 45,
        "value_type": "radio",
        "question_desc_cn": "\u94fe\u8def\u5206\u67902",
        "option_order": "[22,21,20,19,18,17]",
        "radio": { "options": [17, 18, 19, 20, 21, 22] },
        "cn_short": "\u94fe\u8def\u5206\u67902",
        "tips": "",
        "meta": "{}"
      }
    },
    {
      "id": "node-45;option-22",
      "data": {
        "id": 22,
        "cn_name": "\u531d\u9053 ",
        "en_name": "",
        "meta": {}
      }
    },
    {
      "id": "node-45;option-21",
      "data": { "id": 21, "cn_name": "\u73af\u5c9b", "en_name": "", "meta": {} }
    },
    {
      "id": "node-45;option-20",
      "data": {
        "id": 20,
        "cn_name": "\u8f66\u9053\u6c47\u5408",
        "en_name": "",
        "meta": {}
      }
    },
    {
      "id": "node-45;option-19",
      "data": {
        "id": 19,
        "cn_name": "\u8f66\u9053\u5206\u79bb",
        "en_name": "",
        "meta": {}
      }
    },
    {
      "id": "node-45;option-18",
      "data": {
        "id": 18,
        "cn_name": "\u8f66\u9053\u6570\u51cf\u5c11",
        "en_name": "",
        "meta": {}
      }
    },
    {
      "id": "node-45;option-17",
      "data": {
        "id": 17,
        "cn_name": "\u8f66\u9053\u6570\u589e\u52a0",
        "en_name": "",
        "meta": {}
      }
    },
    {
      "id": "node-46",
      "data": {
        "id": 46,
        "value_type": "end",
        "question_desc_cn": "\u94fe\u8def\u5206\u67903",
        "option_order": "[]",
        "end": { "options": [-1] },
        "cn_short": "\u94fe\u8def\u5206\u67903",
        "tips": "",
        "meta": "{}"
      }
    },
    {
      "id": "virtual-0",
      "data": {
        "id": 22,
        "cn_name": "\u531d\u9053 ",
        "en_name": "",
        "meta": {}
      }
    }
  ],
  "edges": [
    { "source": "node-44", "target": "node-44;option-5" },
    { "source": "node-44", "target": "node-44;option-6" },
    { "source": "node-44", "target": "node-44;option-7" },
    { "source": "node-44", "target": "node-44;option-8" },
    { "source": "node-44", "target": "node-44;option-9" },
    { "source": "node-44", "target": "node-44;option-10" },
    { "source": "node-44", "target": "node-44;option-11" },
    { "source": "node-45", "target": "node-45;option-22" },
    { "source": "node-45", "target": "node-45;option-21" },
    { "source": "node-45", "target": "node-45;option-20" },
    { "source": "node-45", "target": "node-45;option-19" },
    { "source": "node-45", "target": "node-45;option-18" },
    { "source": "node-45", "target": "node-45;option-17" },
    { "source": "node-44;option-9", "target": "virtual-0" },
    { "source": "node-44;option-8", "target": "virtual-0" },
    { "source": "node-44;option-7", "target": "virtual-0" },
    { "source": "virtual-0", "target": "node-46" },
    { "source": "node-44;option-11", "target": "node-45" },
    { "source": "node-44;option-8", "target": "node-45" },
    { "source": "node-44;option-6", "target": "node-45" }
  ]
}

export const exampleData={
  "id": "Modeling Methods",
  "children": [
    {
      "id": "Classification",
      "children": [
        { "id": "Logistic regression" },
        { "id": "Linear discriminant analysis" },
        { "id": "Rules" },
        { "id": "Decision trees" },
        { "id": "Naive Bayes" },
        { "id": "K nearest neighbor" },
        { "id": "Probabilistic neural network" },
        { "id": "Support vector machine" }
      ]
    },
    {
      "id": "Consensus",
      "children": [
        {
          "id": "Models diversity",
          "children": [
            { "id": "Different initializations" },
            { "id": "Different parameter choices" },
            { "id": "Different architectures" },
            { "id": "Different modeling methods" },
            { "id": "Different training sets" },
            { "id": "Different feature sets" }
          ]
        },
        {
          "id": "Methods",
          "children": [
            { "id": "Classifier selection" },
            { "id": "Classifier fusion" }
          ]
        },
        {
          "id": "Common",
          "children": [
            { "id": "Bagging" },
            { "id": "Boosting" },
            { "id": "AdaBoost" }
          ]
        }
      ]
    },
    {
      "id": "Regression",
      "children": [
        { "id": "Multiple linear regression" },
        { "id": "Partial least squares" },
        { "id": "Multi-layer feedforward neural network" },
        { "id": "General regression neural network" },
        { "id": "Support vector regression" }
      ]
    }
  ]
}
export const data1 = {
  "id":'node-44',
  "children":[ 
    { "id": "node-44;option-5"},
    {
      "id": "node-44;option-6",
      "children":[
        {"id": "node-45"},
      ]
    },
    {
      "id": "node-44;option-7",
      "children":[ 
        {"id": "virtual-0"},
      ]
    },
    /* { // 如果开放这里就会出问题，是因为id不是唯一的，我上面也用了id为node-45的
      "id": "node-44;option-8",
      "children":[
        {"id": "virtual-0"},
        {"id": "node-45"},
      ]
    } */
  ]
}

export const exampleDataShort={
  "id": "Modeling Methods",
  "children": [
    {
      "id": "Classification",
      "children": [
        { "id": "Logistic regression" },
        { "id": "Linear discriminant analysis" },
        { "id": "Rules" },
        { "id": "Decision trees" },
        { "id": "Naive Bayes" },
        { "id": "K nearest neighbor" },
        { "id": "Probabilistic neural network" },
        { "id": "Support vector machine" }
      ]
    },
  ]
}


export const processDataAnother = {
  "id":'node-44',
  "children":[ 
    { "id": "node-44;option-5"},
    {
      "id": "node-44;option-6",
      "children":[
        {
          "id": "node-45",
          
        },
      ]
    },
    {
      "id": "node-44;option-7",
   
      "children":[
        {
          "id": "virtual-0",
       
        }
      ]
    },
    {
      "id": "node-44;option-8",
   
      "children":[
        {
          "id": "virtual-0",
        
        },
        {
          "id": "node-45",
         
        },
      ]
    },
    {
      "id": "node-44;option-9",
     
      "children":[
        {
          "id": "virtual-0",
        
        }
      ]
    },
    {
      "id": "node-44;option-10",
   
    },
    {
      "id": "node-44;option-11",
 
      "children":[
        {
          "id": "node-45"
        },
      ]
    },
  ]
}

export const processData = {
  "id":'node-44',
  "children":[
    {
      "id": "node-44;option-5",
      // "data": { "id": 5, "cn_name": "\u662f", "en_name": "", "meta": {} }
    },
    {
      "id": "node-44;option-6",
      // "data": { "id": 6, "cn_name": "\u5426", "en_name": "", "meta": {} },
      "children":[
        {
          "id": "node-45",
          /* "data": {
            "id": 45,
            "value_type": "radio",
            "question_desc_cn": "\u94fe\u8def\u5206\u67902",
            "option_order": "[22,21,20,19,18,17]",
            "radio": { "options": [17, 18, 19, 20, 21, 22] },
            "cn_short": "\u94fe\u8def\u5206\u67902",
            "tips": "",
            "meta": "{}"
          } */
        },
      ]
    },
    {
      "id": "node-44;option-7",
      // "data": { "id": 7, "cn_name": "\u76f4\u884c", "en_name": "", "meta": {} },
      "children":[
        {
          "id": "virtual-0",
         /*  "data": {
            "id": 22,
            "cn_name": "\u531d\u9053 ",
            "en_name": "",
            "meta": {}
          } */
        }
      ]
    },
    {
      "id": "node-44;option-8",
      // "data": { "id": 8, "cn_name": "\u5de6\u8f6c", "en_name": "", "meta": {} },
      "children":[
        {
          "id": "virtual-0",
         /*  "data": {
            "id": 22,
            "cn_name": "\u531d\u9053 ",
            "en_name": "",
            "meta": {}
          } */
        },
        {
          "id": "node-45",
          /* "data": {
            "id": 45,
            "value_type": "radio",
            "question_desc_cn": "\u94fe\u8def\u5206\u67902",
            "option_order": "[22,21,20,19,18,17]",
            "radio": { "options": [17, 18, 19, 20, 21, 22] },
            "cn_short": "\u94fe\u8def\u5206\u67902",
            "tips": "",
            "meta": "{}"
          } */
        },
      ]
    },
    {
      "id": "node-44;option-9",
      // "data": { "id": 9, "cn_name": "\u53f3\u8f6c", "en_name": "", "meta": {} },
      "children":[
        {
          "id": "virtual-0",
          /* "data": {
            "id": 22,
            "cn_name": "\u531d\u9053 ",
            "en_name": "",
            "meta": {}
          } */
        }
      ]
    },
    {
      "id": "node-44;option-10",
      // "data": { "id": 10, "cn_name": "\u6389\u5934", "en_name": "", "meta": {} }
    },
    {
      "id": "node-44;option-11",
      // "data": { "id": 11, "cn_name": "\u7b49\u706f", "en_name": "", "meta": {} },
      "children":[
        {
          "id": "node-45",
         /*  "data": {
            "id": 45,
            "value_type": "radio",
            "question_desc_cn": "\u94fe\u8def\u5206\u67902",
            "option_order": "[22,21,20,19,18,17]",
            "radio": { "options": [17, 18, 19, 20, 21, 22] },
            "cn_short": "\u94fe\u8def\u5206\u67902",
            "tips": "",
            "meta": "{}"
          } */
        },
      ]
    },
  ]
}
